package com.kofigyan.stateprogressbarsample;

import com.kofigyan.stateprogressbar.StateProgressBar;
import com.kofigyan.stateprogressbarsample.not_stateprogressbar.utils.AbilityToAbility;
import ohos.aafwk.content.Intent;
import ohos.agp.components.Component;

public class UsagePricingActivity extends UsageBaseActivity {

    @Override
    protected void onStart(Intent intent) {
        super.onStart(intent);
        injectBackView();

        stateProgressBar.setCurrentStateNumber(StateProgressBar.StateNumber.TWO);
    }

    @Override
    protected int getLayoutId() {
        return ResourceTable.Layout_ability_usage_pricing;
    }

    @Override
    public void onClick(Component component) {
        if (component.getId() == ResourceTable.Id_btnNext) {
            AbilityToAbility.toAbility(getContext(), UsageAmenitiesActivity.class);
        } else {
            terminateAbility();
        }
    }
}
